package org.dromara.hmily.demo.springcloud.order.test;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @auther zzyy
 * @create 2021-04-11 17:26
 */
@Component
@Aspect
public class T3
{
    @Around("execution(* org.dromara.hmily.demo.springcloud.order.controller.OrderController.*(..))")
    public Object checkSecurityAround(ProceedingJoinPoint pjp) throws Throwable
    {
        Object[] args = pjp.getArgs();
        for (Object element : args) {
            System.out.println("T3-----args is: "+element);
        }

        System.out.println("	T3 环绕通知进入**************************");
        Object obj = pjp.proceed();
        System.out.println("	T3 环绕通知结束**************************");
        return obj;
    }

}
